/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
 * @author: Pegasus  Date: 2019-02-13 Time: 23:07
 */

import {Action} from "../../../../../../configuration/ActionCreator"
import {requestGetRecordSum,requestMaterialRecordOut} from "../../../../../../request/RepairOrderOperationRequest"
import {requestRetrieveMaterial} from "../../../../../../request/DepartmentalRepairOrderRequest";



export const GetRecordSum = 'GetRecordSum';
export const getRecordSum = (str) => {
    let action = Action(GetRecordSum);
    return dispatch => dispatch(requestGetRecordSum(action, str))
}

export const MaterialRecordOut = 'MaterialRecordOut';
export const materialRecordOut = (str) => {
    let action = Action(MaterialRecordOut);
    return dispatch => dispatch(requestMaterialRecordOut(action, str))
}

export const RetrieveMaterialBySn = 'RetrieveMaterialBySn';
export const retrieveMaterialBySn = (str) => {
    let action = Action(RetrieveMaterialBySn);
    return dispatch => dispatch(requestRetrieveMaterial(action, str))
}